package edu.upc.demo.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;
import edu.upc.demo.domain.Hoteles;
import javax.persistence.ManyToOne;
import edu.upc.demo.domain.TiposVuelo;
import edu.upc.demo.domain.Ciudades;
import edu.upc.demo.domain.TiposHabitacion;
import javax.validation.constraints.Size;

@RooJavaBean
@RooToString
@RooEntity
public class PaqueteTuristico {

    @NotNull
    private String codigo;

    @NotNull
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date fechaInicio;

    @NotNull
    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "M-")
    private Date fechaFin;

    @ManyToOne
    private Hoteles codHotel;

    @ManyToOne
    private TiposVuelo codTipoVuelo;

    @ManyToOne
    private Ciudades ciudad;

    @ManyToOne
    private TiposHabitacion codTipoHabitacion;

    private double precio;

    @Size(max = 100)
    private String imagen;
}
